﻿function CMPTimer( ) {

    var meizz;  //设置一个全局变量 
    var n = 300000;  //时间设置(300秒)          
    meizz = setTimeout("window.location.href='../Map/Index'", n);
     document.onmousedown = function () {
        clearTimeout(meizz);
        meizz = setTimeout("window.location.href='../Map/Index'", n);
    }
     document.onkeydown = function () {
        clearTimeout(meizz);
        meizz = setTimeout("window.location.href='../Map/Index'", n);
    }
}